<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <style>
        .error{
        background-color: blueviolet;
        width: 300px;
        height: 50px;
        border-left: 8px solid  orange;
        line-height: 50px;
        padding-left: 10px;
        font-size: 18px;
        color: white;
        }
    </style>
    <div  class="error">CSS</div>
</body>
</html>